/* ================================================================
   BVPS — Bal Vikas Senior Secondary School
   popup.css  |  Admission Popup Stylesheet
   ================================================================
   Usage: <link rel="stylesheet" href="popup.css">
   Fonts needed:
     Playfair Display (Google Fonts)
     DM Sans (Google Fonts)
     Font Awesome 6
   ================================================================ */

/* ================================================================
   BVPS ADMISSION POPUP
   popup.css  — Copy this CSS block into your popup.css file
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


/* ── OVERLAY ───────────────────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 25, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.popup-overlay.visible {
  opacity: 1;
  visibility: visible;
  display: flex;
}

/* ── POPUP CARD ────────────────────────────────────────────────── */
.popup-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(160deg, #0d1e36 0%, #112840 35%, #1a3558 70%, #1e4070 100%);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(47, 128, 237, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transform: scale(0.88) translateY(24px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 95vh;
  overflow-y: auto;
  scrollbar-width: none;
}
.popup-card::-webkit-scrollbar { display: none; }
.popup-overlay.visible .popup-card {
  transform: scale(1) translateY(0);
}

/* Glass shimmer line at top */
.popup-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), rgba(255,215,0,0.25), rgba(255,255,255,0.35), transparent);
  z-index: 1;
}

/* Subtle ambient glow inside card */
.popup-card::after {
  content: "";
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 200px;
  background: radial-gradient(circle, rgba(47, 128, 237, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── CLOSE BUTTON ──────────────────────────────────────────────── */
.popup-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s ease;
}
.popup-close:hover {
  background: rgba(217, 119, 6, 0.3);
  border-color: rgba(217, 119, 6, 0.6);
  color: #fff;
  transform: rotate(90deg);
}

/* ── LOGO SECTION ──────────────────────────────────────────────── */
.logo-section {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 38px 24px 20px;
}
.logo-glow-ring {
  position: relative;
  width: 108px; height: 108px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Rotating golden ring */
.logo-glow-ring::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #d97706, #f59e0b, #fbbf24, #ffffff40, #2f80ed, #1a56d2, #d97706);
  animation: spin-ring 5s linear infinite;
  z-index: -1;
}
@keyframes spin-ring {
  to { transform: rotate(360deg); }
}
/* White glow behind logo */
.logo-glow-ring::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  z-index: -2;
}
.logo-inner {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  overflow: hidden;
}
.logo-inner img {
  width: 84px; height: 84px;
  object-fit: contain;
  padding: 4px;
}
/* School name badge below logo */
.school-badge {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.school-badge i { color: #f59e0b; font-size: 10px; }

/* ── IMAGE PLACEHOLDER ─────────────────────────────────────────── */
.image-section {
  position: relative;
  z-index: 2;
  padding: 0 22px;
}
.image-placeholder {
  position: relative;
  width: 100%;
  height: 188px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.25s;
}
.image-placeholder:hover {
  border-color: rgba(245, 158, 11, 0.4);
}
/* Actual school image (when replaced) */
.image-placeholder img.school-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: none; /* Show when src is set */
}
.placeholder-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(47, 128, 237, 0.15);
  border: 1px solid rgba(47, 128, 237, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-icon i { font-size: 22px; color: rgba(47,128,237,0.8); }
.placeholder-text {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-align: center;
  line-height: 1.5;
}
.placeholder-hint {
  font-size: 10.5px;
  color: rgba(255,255,255,0.25);
  font-family: "Courier New", monospace;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  padding: 3px 10px;
  margin-top: 2px;
}
/* Corner badges on image */
.img-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(217, 119, 6, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 8px;
}
.img-year-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.8);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
}

/* ── CONTENT AREA ──────────────────────────────────────────────── */
.popup-content {
  position: relative;
  z-index: 2;
  padding: 24px 28px 20px;
  text-align: center;
}

/* Main heading */
.admission-heading {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.admission-heading .emoji-icon {
  font-size: 26px;
  display: inline-block;
  animation: bounce-emoji 1.8s ease-in-out infinite;
  margin-right: 2px;
}
@keyframes bounce-emoji {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.admission-heading .open-text {
  background: linear-gradient(90deg, #fff 0%, #f0f8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.session-text {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(90deg, #d97706, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
  display: block;
  letter-spacing: 0.03em;
}

/* Subheading pills */
.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-bottom: 18px;
}
.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.info-pill i {
  font-size: 10px;
  color: #f59e0b;
}

/* Divider line */
.popup-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  margin: 0 0 16px;
}

/* Description text */
.popup-desc {
  margin-bottom: 8px;
}
.popup-desc .limited-seats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.popup-desc .limited-seats i {
  font-size: 10px;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.popup-desc p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  font-weight: 400;
}
.popup-desc p strong {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

/* ── CTA BUTTON ────────────────────────────────────────────────── */
.cta-section {
  padding: 8px 28px 24px;
  position: relative;
  z-index: 2;
}
.apply-btn {
  position: relative;
  width: 100%;
  padding: 17px 32px;
  margin-top: 20px;
  border: none;
  border-radius: 50px;
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(135deg, #1a56d2 0%, #2f80ed 35%, #d97706 80%, #f59e0b 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  box-shadow:
    0 12px 40px rgba(217, 119, 6, 0.35),
    0 4px 16px rgba(47, 128, 237, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.4s ease;
  letter-spacing: 0.03em;
}
/* Glossy highlight effect */
.apply-btn::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50px 50px 0 0;
  pointer-events: none;
}
/* Shimmer sweep effect */
.apply-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.apply-btn:hover {
  background-position: 100% 0%;
  transform: translateY(-2px);
  box-shadow:
    0 18px 50px rgba(217, 119, 6, 0.45),
    0 8px 24px rgba(47, 128, 237, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.apply-btn:hover::after { left: 140%; }
.apply-btn:active { transform: translateY(0px) scale(0.98); }
.apply-btn .btn-icon {
  margin-left: 10px;
  display: inline-block;
  transition: transform 0.25s ease;
}
.apply-btn:hover .btn-icon { transform: translateX(5px); }

/* ── POPUP FOOTER ──────────────────────────────────────────────── */
.popup-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 14px 28px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.popup-footer .school-name {
  font-family: "Playfair Display", serif;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  margin-bottom: 3px;
}
.popup-footer .school-address {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  font-weight: 400;
  margin-bottom: 4px;
}
.popup-footer .school-website {
  font-size: 11.5px;
  color: rgba(47, 128, 237, 0.75);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.popup-footer .school-website:hover { color: #f59e0b; }


/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .popup-card { border-radius: 22px; }
  .admission-heading { font-size: 26px; }
  .logo-inner { width: 88px; height: 88px; }
  .logo-glow-ring { width: 96px; height: 96px; }
  .popup-content { padding: 20px 22px 16px; }
  .cta-section { padding: 6px 22px 20px; }
  .apply-btn { font-size: 15px; padding: 15px 28px; }
}